package com.yanggu.bigdata.entity.vo;

import lombok.Data;

@Data
public class SugarResponse<T> {

    private Integer status;

    private T data;

    private String msg;

    public static <T> SugarResponse<T> success(T data) {
        SugarResponse<T> response = new SugarResponse<>();
        response.setData(data);
        response.setStatus(0);
        return response;
    }

}
